3.69 \(\int e^x \tan (e^x) \, dx\)

Optimal. Leaf size=7 \[ -\log \left (\cos \left (e^x\right )\right ) \]

[Out]

-ln(cos(exp(x)))

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 7, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2282, 3475} \[ -\log \left (\cos \left (e^x\right )\right ) \]

Antiderivative was successfully verified.

[In]

Int[E^x*Tan[E^x],x]

[Out]

-Log[Cos[E^x]]

Rule 2282

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rule 3475

Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin {align*} \int e^x \tan \left (e^x\right ) \, dx &=\operatorname {Subst}\left (\int \tan (x) \, dx,x,e^x\right )\\ &=-\log \left (\cos \left (e^x\right )\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 7, normalized size = 1.00 \[ -\log \left (\cos \left (e^x\right )\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[E^x*Tan[E^x],x]

[Out]

-Log[Cos[E^x]]

________________________________________________________________________________________

fricas [A]  time = 1.10, size = 12, normalized size = 1.71 \[ -\frac {1}{2} \, \log \left (\frac {1}{\tan \left (e^{x}\right )^{2} + 1}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)*tan(exp(x)),x, algorithm="fricas")

[Out]

-1/2*log(1/(tan(e^x)^2 + 1))

________________________________________________________________________________________

giac [A]  time = 0.12, size = 7, normalized size = 1.00 \[ -\log \left ({\left | \cos \left (e^{x}\right ) \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)*tan(exp(x)),x, algorithm="giac")

[Out]

-log(abs(cos(e^x)))

________________________________________________________________________________________

maple [A]  time = 0.00, size = 7, normalized size = 1.00 \[ -\ln \left (\cos \left ({\mathrm e}^{x}\right )\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(x)*tan(exp(x)),x)

[Out]

-ln(cos(exp(x)))

________________________________________________________________________________________

maxima [A]  time = 0.31, size = 4, normalized size = 0.57 \[ \log \left (\sec \left (e^{x}\right )\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)*tan(exp(x)),x, algorithm="maxima")

[Out]

log(sec(e^x))

________________________________________________________________________________________

mupad [B]  time = 2.65, size = 10, normalized size = 1.43 \[ \frac {\ln \left ({\mathrm {tan}\left ({\mathrm {e}}^x\right )}^2+1\right )}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tan(exp(x))*exp(x),x)

[Out]

log(tan(exp(x))^2 + 1)/2

________________________________________________________________________________________

sympy [A]  time = 0.16, size = 10, normalized size = 1.43 \[ \frac {\log {\left (\tan ^{2}{\left (e^{x} \right )} + 1 \right )}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)*tan(exp(x)),x)

[Out]

log(tan(exp(x))**2 + 1)/2

________________________________________________________________________________________